package service

import (
	"car-thirdparty-api/internal/model"
	"context"
)

type IBookingV1 interface {
	BookingAccess(ctx context.Context, req *model.BookingAccessReq) (res *model.BookingAccessRes, err error)
	BookingAdd(ctx context.Context, req *model.BookingAddReq) (res *model.BookingAddRes, err error)
}

var localBookingV1 IBookingV1

func BookingV1() IBookingV1 {
	if localBookingV1 == nil {
		panic("implement not found for interface IBookingV1, forgot register?")
	}
	return localBookingV1
}

func RegisterBookingV1(i IBookingV1) {
	localBookingV1 = i
}
